
const routes = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/Index.vue') },
      {
        path: 'account',
        component: () => import('pages/Account.vue'),
        children: [
          { path: 'login', component: () => import('pages/Account/Login.vue') },
          { path: 'me', component: () => import('pages/Account/Me.vue') },
        ]
      },
      { path: 'guild', component: () => import('pages/Guild.vue') },
      { path: 'guild/:member/box', component: () => import('pages/Guild/Box.vue') },
      { path: 'box', component: () => import('pages/Box.vue') },
      { path: 'team-calculate', component: () => import('pages/TeamCalculate.vue') }
    ]
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
